package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/** 
 * 小额免密支付实体类
 * @ClassName: BisMicroPayConfig 
 * @author w_jiqing 
 * @date 2017年5月22日 下午4:05:05  
 */ 
@Entity
@Table(name = "BIS_MICRO_PAY_CH_CFG")
public class BisMicroPayConfig extends BaseBisBankExtConfig{

    private static final long serialVersionUID = 290120306294038283L;

    /**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_MICRO_PAY_CH_CFG_SQ_GENERATOR", allocationSize=1,initialValue=1, sequenceName="BIS_MICRO_PAY_CH_CFG_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_MICRO_PAY_CH_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_DEBIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean debitCard;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CREDIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean creditCard;

    /**
     * 退款请求地址
     */
    @Column(name = "REFUND_URL")
    public String refundUrl;
    /**
     * 退款查询请求地址
     */
    @Column(name = "REFUND_QUERY_URL")
    public String refundQueryUrl;
    /**
     * 退款渠道
     */
    @Column(name = "REFUND_CHANNEL")
    private String refundChannel;
    
    /**
     * 是否支持一户一码模式
     */
    @Column(name = "MERCHANT_MODEL")
    private String merchantModel;
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public boolean isDebitCard() {
        return debitCard;
    }
    public void setDebitCard(boolean debitCard) {
        this.debitCard = debitCard;
    }
    public boolean isCreditCard() {
        return creditCard;
    }
    public void setCreditCard(boolean creditCard) {
        this.creditCard = creditCard;
    }
    public String getRefundUrl() {
        return refundUrl;
    }
    public void setRefundUrl(String refundUrl) {
        this.refundUrl = refundUrl;
    }
    public String getRefundQueryUrl() {
        return refundQueryUrl;
    }
    public void setRefundQueryUrl(String refundQueryUrl) {
        this.refundQueryUrl = refundQueryUrl;
    }
    public String getRefundChannel() {
        return refundChannel;
    }
    public void setRefundChannel(String refundChannel) {
        this.refundChannel = refundChannel;
    }
	public String getMerchantModel() {
		return merchantModel;
	}
	public void setMerchantModel(String merchantModel) {
		this.merchantModel = merchantModel;
	}
    
    

}
